import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    battleTeam:{},
    currPlayerId:null
  },
  mutations: {
    changeMatchId(state,payload){
      state.battleTeam = payload
    },
    changePlayerId(state,payload){
      console.log('触发changePlayerId')
      state.currPlayerId = payload
    }
  },
  actions: {
  },
  modules: {
  }
})
